import Vue from 'vue'
import Router from 'vue-router'
import Insert from '@/components/Insert'

import Main from '@/components/home/main'
import Attr from '@/components/Attr'
import Update from '@/components/Update'
import User from '@/components/user/User'

import Auth from '@/components/user/Auth'
import Magament from '@/components/user/Magament'

import Ip from '@/components/ipbussine/ip'

import BusinessManagement from '@/components/ipbussine/bussineMange'
import Bookmagament from '@/components/Bookmagament'

import Audio from '@/components/audio/Audio'

import AudioContent from '@/components/audio/AudioContent'
import AudioPeriod from '@/components/audio/AudioPeriod'
import UserGroup from '@/components/user/UserGroup'



Vue.use(Router)

export default new Router({
  routes: [
   /* {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },*/
    {
      path: '/',
      name: 'Main',
      component: Main,
      children: [
        {
          path: '/insert',
          name: 'Insert',
          component: Insert
        },
        {
          path: '/attr',
          name: 'Attr',
          component: Attr
        },
        {
          path: '/update',
          name: 'Update',
          component: Update
        },
        {
          path: '/user',
          name: 'User',
          component: User
        },
        {
          path: '/auth',
          name: 'Auth',
          component: Auth
        },
        {
          path: '/magament',
          name: 'Magament',
          component: Magament
        },
        {
          path: '/ipmanage',
          name: 'Ip',
          component: Ip
        },
        {
          path: '/businessManagement',
          name: 'BusinessManagement',
          component: BusinessManagement
        },{
          path: '/bookmagament',
          name: 'Bookmagament',
          component: Bookmagament
        },
        {
          path: '/audio',
          name: 'Audio',
          component: Audio
        },
        {
          path: '/audioContent',
          name: 'AudioContent',
          component: AudioContent
        },
        {
          path: '/audioPeriod',
          name: 'AudioPeriod',
          component: AudioPeriod
        },
        {
          path: '/userGroup',
          name: 'UserGroup',
          component: UserGroup
        }


      ]
    }

  ]
})
